/*************************************************************************
	> File Name: oj-148.c
	> Author: xiangpeng cai
	> Mail: 
	> Created Time: Sun 04 Jul 2021 06:45:14 AM PDT
 ************************************************************************/

#include<stdio.h>
#include<string.h>
int main() {
    char str[51];
    int len = 0;
    scanf("%s", str);
    len = strlen(str);
    for (int j = len - 1; j >= 0; j--) {
        putchar(str[j]);
    }
    printf("\n");

    return 0;
}
